updating oE curdir

curdir

include filesys.e 
namespace filesys 
public function curdir(integer drive_id = 0) 

Returns the current directory, with a trailing SLASH

Parameters:
  1. drive_id : For Windows systems only. This is the Drive letter to to get the current directory of. If omitted, the current drive is used.
Returns:

A sequence, the current directory.

Comments:

Windows maintains a current directory for each disk drive. You would use this routine if you wanted the current directory for a drive that may not be the current drive.

For Unix systems, this is simply ignored because there is only one current directory at any time on Unix.

Note:

This always ensures that the returned value has a trailing SLASH character.

Example 1:
res = curdir('D') -- Find the current directory on the D: drive. 
-- res might be "D:\backup\music\" 
res = curdir()    -- Find the current directory on the current drive. 
-- res might be "C:\myapp\work\" 
Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu